package repo

import "go-weixin/app/usercenter/model"

type PowerRepo interface {
	PowerExistByName(name string) (bool, error)
	PowerAdd(power *model.PowerModel) (int64, error)
	PowerExistById(id int64) (bool, error)
	PowerUpdate(id int64, power *model.PowerModel) (int64, error)
	PowerUpdateExisByName(name string, id int64) (bool, error)
	PowerList(limit int64, offset int64, powerList *[]model.PowerModel) error
	GetPowerById(id int64, power *model.PowerModel) (bool, error)
	PowerGetRoleById(id int64, roleList *[]model.RoleModel) error
	PowerGetUserById(id int64, userList *[]model.UserModel) error
}
